<style>
.memlogo-area{
	color: #fff;
}
.color{
	color: #fff;
}
.memlogo-area .memlogo img{
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 0 solid #fff;
}
.memlogo-area{
	width: 100%;
	background: #4491F1;
	border-radius: 0;
	height:9.6rem;
	margin-bottom:0
}
.memlogo-area .sign-btn{
    position: absolute;
	border-radius:0.3rem;
    margin: 0 auto;
    padding: 0 0.3rem;
	right:16px;
    color:#fff;
	text-align:center;
    background: #fabbbb;
}
.jylabel {
    padding: 0.2rem 1rem;
    font-size: 0.65rem;
    border-radius: 1rem;
}
.jylabel-info {
	border: 1px solid #fff;color:#fff;
}
.item-up-content {background-color: #fff;border-radius: 10px;padding:0.5rem;margin:0.5rem}
.weui_cells {padding:0;margin-top:0}
.weui_cell_bd {padding:0;padding-bottom:0.3rem;padding-top:0.3rem;color:#999;font-size:0.7rem}
.weui_cell_hd {font-size:0.7rem;padding-bottom:0.3rem;padding-top:0.3rem;margin-right:0.3rem}
.item-ng {}
.item-ng .deleteitem {position: absolute;color:#000;margin-top:-1rem;right:0.5rem}
</style>
<div ng-if="pagedata.op=='get'" class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div style="">					
					<div class="memlogo-area">
						<div class="col-jy" style="margin-top:0.6rem">
							<div class="jy-2">
								<h5 href="javascript:;">本月未结课时（节）</h5>
								<h2 style="margin-top:0;">{{pagedata.data.yuenum || '0'}} </h2>
							</div>
							<div class="jy-2">
								<span class="r-f jylabel jylabel-info" ng-click="access_json('jy_kexie/worker.index/')" style="margin-right:0.3rem;">设置信息</span>
							</div>
						</div>
						<div class="col-jy" style="margin-top:0.6rem">
							<div class="jy-2">
								<h5 href="javascript:;">累计课时（节）</h5>
								<h2 style="margin-top:0;">{{pagedata.data.allnum || '0'}} </h2>
							</div>
							<div class="jy-2">
								<h5 href="javascript:;">未结课时（节）</h5>
								<h2 style="margin-top:0;">{{pagedata.data.weinum || '0'}}</h2>
							</div>
						</div>
					</div>
			</div>
			<div class="fui-tab fui-tab-danger" id="tab" style="top:0.5rem">
				<a ng-class="{'external active':pagedata.params.status == '0'}" href="javascript:" ng-click="pagedata.params.status='0';tool.get_list('jy_kexie/worker.lesson_pai/list/',true);">待审核</a>
				<a ng-class="{'external active':pagedata.params.status == '1'}" href="javascript:" ng-click="pagedata.params.status='1';tool.get_list('jy_kexie/worker.lesson_pai/list/',true);">待上课</a>
				<a ng-class="{'external active':pagedata.params.status == '2'}" href="javascript:" ng-click="pagedata.params.status='2';tool.get_list('jy_kexie/worker.lesson_pai/list/',true);">已签到</a>
				<a ng-class="{'external active':pagedata.params.status == '3'}" href="javascript:" ng-click="pagedata.params.status='3';tool.get_list('jy_kexie/worker.lesson_pai/list/',true);">已完成</a>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
			</div>
			<div style="padding:0.5rem">
			<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-media">
						<span ng-if="pagedata.params.status <2" class="label label-success">{{item.statustitle}}</span>
						<span ng-if="pagedata.params.status >=2" class="label label-danger">{{item.statustitle}}</span>
					</div>
					<div class="fui-list-inner">
						<div class='title'>	
							{{item.ontime}}
						</div>
						<div class='gray'>{{item.storetitle}}</div>
					</div>
					<div ng-click="access_json('jy_kexie/worker.home/detail/id='+item.id)" class='fui-list-angle remark'>
						详情<div class="angle"></div>
					</div>
				</div>
			</div>
			</div>
	</div>
</div>
<div ng-if="pagedata.op=='detail'" class="fui-page">
    <div class="fui-content">
		<div class="weui_cells_title" style="margin:0.5rem;padding-left:0.2rem">课程详情</div>
		<div class="item-up-content item-ng">
		<div class='weui_cells weui_cells_form'>
			<div ng-if="pagedata.item.status==0" class="weui_cell">
					<div class="weui_cell_hd">审核课程</div>
					<div class="weui_cell_bd weui_cell_primary">
						<div ng-if="pagedata.item.status==0" class='btn btn-sm btn-banf btn-danger' href="javascript:" ng-click="post(pagedata.post,'//status1/')">审核通过</div>
						<div ng-if="pagedata.item.status==0" class='btn btn-sm btn-banf btn-info' href="javascript:" ng-click="post(pagedata.post,'//status4/')">审核不通过</div>
						
						<span style="color:#4491F1" ng-if="pagedata.item.issign==1">
							已签到
						</span>
					</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_hd">任课老师</div>
					<div class="weui_cell_bd weui_cell_primary">
						{{pagedata.item.worker.name}}
						<div ng-if="pagedata.item.status==1 && pagedata.item.issign!=1" class='btn btn-sm btn-banf btn-danger' href="javascript:" ng-click="post(pagedata.post,'//sign/')">点击签到</div>
						<span style="color:#4491F1" ng-if="pagedata.item.issign==1">
							已签到
						</span>
					</div>
					<div href="javascript:" ng-click="pagedata.showworker=true" class="weui_cell_ft" style="color:#4491F1">
						简介
					</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_hd">课程时间</div>
					<div class="weui_cell_bd weui_cell_primary">
						{{pagedata.item.ontime}}
					</div>
					<div class="weui_cell_ft" style="margin-left:1rem">
					<div ng-if="pagedata.item.status!=3 && (pagedata.item.status==2 || pagedata.item.issign==1)" class='btn btn-sm btn-banf btn-info' href="javascript:" ng-click="post(pagedata.post,'//status3/')">完成课程</div>
					</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_hd">学校</div>
					<div class="weui_cell_bd weui_cell_primary">
						{{pagedata.item.store.title}}
					</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_hd">地址</div>
					<div class="weui_cell_bd weui_cell_primary">
						{{pagedata.item.store.address}}
					</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_hd">联系人</div>
					<div class="weui_cell_bd weui_cell_primary">
						{{pagedata.item.store.lianxiname}}
					</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_hd">手机</div>
					<div class="weui_cell_bd weui_cell_primary">
						{{pagedata.item.store.mobile}}
					</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_hd">办公电话</div>
					<div class="weui_cell_bd weui_cell_primary">
						{{pagedata.item.store.tel}}
					</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_hd">公交线路</div>
					<div class="weui_cell_bd weui_cell_primary">
						{{pagedata.item.store.xianlu}}
					</div>
			</div>
			<div ng-if="pagedata.item.tingnum>0" class="weui_cell">
					<div class="weui_cell_hd">实到人数</div>
					<div class="weui_cell_bd weui_cell_primary">
						{{pagedata.item.tingnum}}
					</div>
			</div>
		</div>
		</div>
		<div ng-if="pagedata.item.status==1 || pagedata.item.status==2" class="item-up-content item-ng">
		<div class="weui_cells weui_cells_form">
						<div class="weui_cell">
							<div class="weui_cell_hd">实到人数</div>
							<div class="weui_cell_bd weui_cell_primary">
								<input class="weui_input" type="text" ng-model="pagedata.post.tingnum" placeholder="0" style="text-align:right">
							</div>
							<div class="weui_cell_ft" style="margin-left:1rem">
								 <div class="btn btn-sm btn-banf btn-danger" href="javascript:" ng-click="post(pagedata.post,'//tingnum/')" >提交</div>
							</div>
						</div>
					</div>
		</div>
		<div ng-if="pagedata.item.status==1 || pagedata.item.status==2" class="weui_cells_title" style="margin:0.5rem;padding-left:0.2rem">上传图片</div>
		<div ng-if="pagedata.item.status==1 || pagedata.item.status==2" class="item-up-content item-ng">
		<div class="weui_cells weui_cells_form">
						<div class="weui_cell">
							<div class="weui_uploader" style="padding:0.2rem 0.5rem">
								<div class="weui_uploader_bd" style="margin-bottom:0">
									<ul class="weui_uploader_files">
										<li ng-repeat="p in pagedata.post.images" class="weui_uploader_file" style="background-image:url('{{tomedia(p)}}')">
											<div class="upbtn" >
												<a style="color:#f60" href="javascript:;" ng-click="pagedata.post.images.splice($index-1,0,p);pagedata.post.images.splice($index+1,1)">上移</a>
												<a style="color:#f60" href="javascript:;" ng-click="pagedata.post.images.splice($index,1)">删除</a>
											</div>
										</li>
									</ul>
									<div class="weui_uploader_input_wrp" href="javascript:;" ng-click="images(pagedata.post,'images')"></div>
								</div>
							</div>
							<div class="weui_cell_ft">
								<div class="btn btn-sm btn-banf btn-danger" href="javascript:" ng-click="post(pagedata.post,'//setimg/')" >提交</div>
							</div>
						</div>
		</div>
		</div>
    </div>
</div>
<div ng-if="pagedata.showworker" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#4491F1">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showworker=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#4491F1">
				<div class='fui-cell-title c' style="color:#fff">《{{pagedata.item.worker.name}}》老师简介</div>
				<div class="fui-article-content" ng-bind-html="trust(pagedata.item.worker.desc)"></div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_kexie/worker.lesson_pai/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_kexie/worker.lesson_pai/list/');
}
</script>